export default ({ app, store }) => {
    // console.log(app.router.options.routes)  后面做路径判断有用，判断路由是否存在
    app.router.beforeEach((to, from, next) => {
        store.commit('SET_FROM_PAGE', from.fullPath)
        next()
    });

    app.router.afterEach((to, from, next) => {
    })

}